namespace go api

struct ListProductCustomFieldListColumnRequest {
    1: i32 pageNum
    2: i32 pageSize
    3: string sort
    4: ProductCustomFieldListColumnData data
}

struct ListProductCustomFieldListColumnResponse {
	1: list<ProductCustomFieldListColumnData> data
	2: i64 count
}

struct ProductCustomFieldListColumnData {
	1:i64 id
	2: string createdAt,
    3: string updatedAt,
    4: i64 createdUserId,
    5: i64 updatedUserId,
    6: i64 organizationId,
    7: string updatedUserNickname,
    8: string createdUserNickname,
		9: i64 productCustomFieldId
	10: string columnName
	11: string masterFlag

}

struct BatchDeleteProductCustomFieldListColumnRequest {
    1: list<i64> ids
}

service ProductCustomFieldListColumn {
    ListProductCustomFieldListColumnResponse listProductCustomFieldListColumn(1: ListProductCustomFieldListColumnRequest req)
    ProductCustomFieldListColumnData getProductCustomFieldListColumn(1: ProductCustomFieldListColumnData req)
    void addProductCustomFieldListColumn(1: ProductCustomFieldListColumnData req)
    void editProductCustomFieldListColumn(1: ProductCustomFieldListColumnData req)
    void deleteProductCustomFieldListColumn(1: i64 id)
    void batchDeleteProductCustomFieldListColumn(1: BatchDeleteProductCustomFieldListColumnRequest req)
}